<template>
  <div>
    <el-steps :active="active" align-center>
      <el-step title="上传文件"></el-step>
      <el-step title="数据预览"></el-step>
      <el-step title="导入数据"></el-step>
    </el-steps>
    <!-- v-if="active == 2" -->
    <el-button @click="prev">上一步</el-button>
    <!-- v-if="active < 3" -->
    <el-button
      @click="next"
      type="primary"
      :loading="btnLoading"
      >下一步
    </el-button>
  </div>
</template>
  
  <script>
export default {
  data() {
    return {
      active: 1,
    };
  },
  methods: {
    prev() {
      if (this.active == 1) return;
      this.active--;
    },
    next() {
      this.active++;
    },
  },
};
</script>
  
  <style>
</style>